package io.aircraft.modules.wms.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.aircraft.common.entity.WmsBaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 入库明细
 *
 * @author Cycle gengruyi01@163.com
 * @since 1.0.0 2022-10-17
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("wms_purchase_detail")
public class PurchaseDetailEntity extends WmsBaseEntity {
	private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
	private Long detailId;
    /**
     * 主单id
     */
	private Long purchaseId;
    /**
     * 商品编号
     */
	private String spuNo;
	private String lotNo;
	private String contNo;
    /**
     * 计划量
     */
	private BigDecimal planQnty;
	/**
	 * 绑定量
	 */
	private BigDecimal bindQnty;
    /**
     * 实收量
     */
	private BigDecimal actlQnty;
    /**
     * 单据状态
     */
	private Integer detailSt;
    /**
     * 备注
     */
	private String comments;
}